import Layout from '@/layout'
import employees from '@/views/employees'
import myimport from '@/views/employees/import'
import detail from '@/views/employees/detail'
import print from '@/views/employees/print.vue'

export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '',
      component: employees,
      name: 'employees',
      meta: {
        title: '员工',
        icon: 'dashboard'
      }
    },
    {
      path: 'myimport',
      component: myimport,
      name: 'myimport',
      hidden: true,
      meta: {
        title: '文件上传',
        icon: 'people'
      }
    },
    {
      path: 'detail/:id',
      component: detail,
      name: 'detail',
      hidden: true,
      meta: {
        title: '员工详情',
        icon: 'people'
      }
    },
    {
      path: 'print/:id',
      component: print,
      name: 'print',
      hidden: true,
      meta: {
        title: '打印',
        icon: 'people'
      }
    }
  ]
}
